﻿@model BattleThis.Core.Game

@{
    ViewBag.Title = this.Model.Name;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section AdditionalHeader
{
    <script src="@Url.Content("~/Scripts/Game/GameEngine.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Game/GameEntitys.js")" type="text/javascript"></script>
}

@section MenuExtension
{
    <li>@this.Html.ActionLink( "Switch User", "SwitchUser" )</li>
    <li>@this.Html.ActionLink( "Further", "Further" )</li>
}

<script type="text/javascript">
    var bootStraping = {
        MapSize: @this.Html.ToJson(this.Model.Map.Size)
    };

</script>

<div style="width:@Html.WidthFor(x => x.Map); height:@Html.HeightFor(x => x.Map);" id="map">

@foreach (var column in this.Model.Map.Fields.Columns)
{
    @this.Html.DisplayFor(model => column, "Column")    
}

</div>
<div class="@Definitions.StyleGameSidebar">
    <h2>Sidebar</h2>
    @this.Html.Widgets()
</div>